/*
 * @Authoryour name
 * @Date2020-11-28 10:46:36
 * @LastEditTime2020-11-28 10:46:36
 * @LastEditorsyour name
 * @DescriptionIn User Settings Edit
 * @FilePath\STM32H750_FreeRTOS\Bsp\led\bsp_led.h
 */ 
#ifndef BSP_LED_H_
#define BSP_LED_H_

#include <stdint.h>
#include "stm32h7xx_ll_rcc.h"
#include "stm32h7xx_ll_gpio.h"
#include "stm32h7xx_hal.h"

#define LED_B_CLK_EN()    __HAL_RCC_GPIOI_CLK_ENABLE()
#define LED_B_CLK_DI()    __HAL_RCC_GPIOI_CLK_DISABLE()
#define LED_B_PORT        GPIOI
#define LED_B_PIN         GPIO_PIN_8

#define LED_B_TOGGLE()    
#define LED_B_ON()        LL_GPIO_ResetOutputPin(LED_B_PORT, LED_B_PIN)
#define LED_B_OFF()       LL_GPIO_SetOutputPin(LED_B_PORT, LED_B_PIN)


#define LED_R_CLK_EN()    __HAL_RCC_GPIOC_CLK_ENABLE()
#define LED_R_CLK_DI()    __HAL_RCC_GPIOC_CLK_DISABLE()
#define LED_R_PORT        GPIOC
#define LED_R_PIN         GPIO_PIN_15

#define LED_R_TOGGLE()    
#define LED_R_ON()        LL_GPIO_ResetOutputPin(LED_R_PORT, LED_R_PIN)
#define LED_R_OFF()       LL_GPIO_SetOutputPin(LED_R_PORT, LED_R_PIN)

extern void bsp_led_init(void);
extern void bsp_led_deinit(void);

#endif /* BSP_LED_H_ */
